package com.mz.entity.vo;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;


@Data
public class GoodCategoryVo {

    private Long id;
    @NotNull(message = "商品分类名称不能为空")
    @Length( min = 1, max=20, message = "商品分类名称(1~20位)")
    private String name;
    private Long parentId;
    private Integer level;
    private Integer sort;
}
